from django.conf.urls import url, include
from . import  views


urlpatterns = [
    url(r'^register/$', views.registerView.as_view()),
    url(r'^usernames/(?P<username>\w{5,20})/count/$', views.CheckUsernameView.as_view()),
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.CheckMobileView.as_view()),
    url(r'^login/$', views.LoginView.as_view()),
    url(r'^info/$', views.InfoView.as_view()),
    url(r'^emails/$', views.EmailView.as_view()),
    url(r'^verify/email/$', views.VerifyView.as_view()),
    url(r'^addresses/$', views.AddressesView.as_view()),
    url(r'^addresses/create/$',views.AddressesCreateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/$',views.AddressesUpdateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/default/$',views.AddressesDefaultView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/title/$',views.AddressesTitleView.as_view()),
    url(r'^password/$',views.UsersPasswordView.as_view()),

]

# client = Fdfs_client('/home/python/Desktop/taobaopoject/taobao17/my_taobao/my_taobao/untils/fdfs/client.conf')


